package com.echat.serviceapigateway.security.model.authorization.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Builder;
import lombok.Data;

import javax.persistence.Column;
import java.time.LocalDateTime;

/**
 * Created by chenmohan on 2018/09/18
 *
 * @description 用于向前端展示接口数据的VO
 */
@Data
@Builder
public class ResourceVo {

    private Long code;

    private Long serviceId;

    private String serviceName;

    private String uri;

    private String memo;

    @JsonFormat(pattern="yyyy年MM月dd日HH时mm分")
    @Column(name = "create_datetime")
    private LocalDateTime createTime;

}
